x86: frame table related improvements
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Dec 2012 12:47:53 +0000 (13:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Dec 2012 12:47:53 +0000 (13:47 +0100)
commit23dbeb5aceb9709f06481884d205095e348793e2
tree85ea0f1ac40a8d5556c8874be4a8b5f862efdcc1
parent645d0367d83fde42f5041da58c3e508ebcfb430b
x86: frame table related improvements

- fix super page frame table setup for memory hotplug case (should
  create full table, or else the hotplug code would need to do the
  necessary table population)
- simplify super page frame table setup (can re-use frame table setup
  code)
- slightly streamline frame table setup code
- fix (tighten) a BUG_ON() and an ASSERT() condition
- fix spage <-> pdx conversion macros (they had no users so far, and
  hence no-one noticed how broken they were)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c
xen/include/asm-x86/mm.h
xen/include/asm-x86/x86_64/page.h